package com.wanter.paper.entity;

import java.io.Serializable;

/**
 * 答案的实体类
 * Created by er on 2017/7/7.
 */
public class Answer implements Serializable {
    private String id;
    private String uid;//用户id
    private String qid;//题的关联键
    private Object relAnswer;//题的答案

    public Answer() {
    }

    public Answer(String id, String uid, String qid, Object relAnswer) {
        this.id = id;
        this.uid = uid;
        this.qid = qid;
        this.relAnswer = relAnswer;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getQid() {
        return qid;
    }

    public void setQid(String qid) {
        this.qid = qid;
    }

    public Object getRelAnswer() {
        return relAnswer;
    }

    public void setRelAnswer(Object relAnswer) {
        this.relAnswer = relAnswer;
    }

    @Override
    public String toString() {
        return "Answer{" +
                "id='" + id + '\'' +
                ", uid='" + uid + '\'' +
                ", qid='" + qid + '\'' +
                ", relAnswer=" + relAnswer +
                '}';
    }
}
